import React, { Component } from 'react';
import { connect } from 'react-redux';

class ComponentB extends Component {
    render() {
        return (
            <div>
                {this.props.testValue}
            </div>
        );
    }
}

const mapStateToProps = (state) => {
    return {
        testValue: state.componentB.testValue
    }
}

export default connect(mapStateToProps, null)(ComponentB);